package com.robotserver.orders.service;

import com.robotserver.orders.entity.AlimmTokens;
import com.robotserver.orders.vo.TbkOrderTimeVO;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.TbkScOrderDetailsGetRequest;
import com.taobao.api.response.TbkScOrderDetailsGetResponse;

import java.util.List;

/**
 * 淘宝支付订单同步
 * @author jianghan
 * @date 2019-11-08 10:06
 */
public interface TbPayOrderSyncService {
    void syncAlimmUnitOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, AlimmTokens alimmTokens, TaobaoClient client,Long orderScene);
    void syncTimeUnitOrder(TbkOrderTimeVO tbkOrderTime, AlimmTokens alimmTokens, TaobaoClient client,String positionindex,Long pageNo,Long orderScene);
    void ordersAdd(List<TbkScOrderDetailsGetResponse.PublisherOrderDto> orders,AlimmTokens alimmTokens);
    void threadSyncOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, List<AlimmTokens> alimmTokens, TaobaoClient client,String lockName,Long orderScene);
    void threadLockSyncOrder(List<TbkOrderTimeVO> tbkOrderTimeVOList, List<AlimmTokens> alimmTokens, TaobaoClient client,String lockName,Long orderScene);

    //消费者-处理淘宝订单线程
    void threadSyncOrder_consumer(List<TbkOrderTimeVO> tbkOrderTimeVOList, AlimmTokens alimmTokens, TaobaoClient client, Long orderScene);

}
